Skip to content

fix(android): prevent export of events with missing data files#3259

Draft
abhaysood wants to merge 1 commit intomainfrom
skip-events-with-no-data
Draft

fix(android): prevent export of events with missing data files#3259
abhaysood wants to merge 1 commit intomainfrom
skip-events-with-no-data

Conversation

@abhaysood
Copy link
Contributor

@abhaysood abhaysood commented Mar 5, 2026

Description

On certain Xiaomi devices (Android 11, 13), events with missing data
files are sent to the server despite pre-export validation. The exact
cause is unclear. Additionally, a rare race condition in
DataCleanupService deletes event files for batched events when max
memory usage is reached.

  • DataCleanupService now only deletes files for unbatched events
  • NetworkClient skips events with missing data files during JSON
    serialization, closer to when the file is actually read
  • Remove redundant pre-export file validation from Exporter
  • Remove unused FileStorage.validateFile

Related issue

Closes #3030

@vercel
Copy link

vercel bot commented Mar 5, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
measure-dashboard Ready Ready Preview, Comment Mar 5, 2026 5:09am

@abhaysood abhaysood self-assigned this Mar 5, 2026
@abhaysood abhaysood requested a review from detj March 5, 2026 04:56
@abhaysood abhaysood added bug something isn't working android android related labels Mar 5, 2026
On certain Xiaomi devices (Android 11, 13), events with missing data
files are sent to the server despite pre-export validation. The exact
cause is unclear. Additionally, a rare race condition in
DataCleanupService deletes event files for batched events when max
memory usage is reached.

- DataCleanupService now only deletes files for unbatched events
- NetworkClient skips events with missing data files during JSON
  serialization, closer to when the file is actually read
- Remove redundant pre-export file validation from Exporter
- Remove unused FileStorage.validateFile

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

android android related bug something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Android SDK sometimes sends invalid exception payload

1 participant